package org.xxpay.core.entity;

import java.util.Date;

public class PayInterfaceType extends BaseModel {
    /**
     * 接口类型代码
     *
     * @mbg.generated
     */
    private String ifTypeCode;

    /**
     * 接口类型名称
     *
     * @mbg.generated
     */
    private String ifTypeName;

    /**
     * 状态,0-关闭,1-开启
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 通道子账号配置是否强制使用模板,0-否, 1-是
     *
     * @mbg.generated
     */
    private Byte mustFromTemplate;

    /**
     * 接口配置定义描述,json字符串
     *
     * @mbg.generated
     */
    private String param;

    /**
     * 回调IP白名单,半角逗号分隔
     *
     * @mbg.generated
     */
    private String whiteIp;

    /**
     * 订单超时时间，默认分钟
     *
     * @mbg.generated
     */
    private Integer orderExpire;

    /**
     * 支付确认金额单位分,默认为-1不限制
     *
     * @mbggenerated
     */
    private Long payConfirmAmount;

    /**
     * 启用异步通知,0-关闭,1-开启
     *
     * @mbg.generated
     */
    private Byte enableNotify;

    /**
     * 接口来源： 1-本地安装, 2-接口市场
     *
     * @mbg.generated
     */
    private Byte ifSourceType;

    /**
     * 接口版本号
     *
     * @mbg.generated
     */
    private String ifVersion;

    /**
     * 支持的配置方式 以,逗号拼接，详见支付通道表注释
     *
     * @mbg.generated
     */
    private String supportConfigType;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public String getIfTypeCode() {
        return ifTypeCode;
    }

    public void setIfTypeCode(String ifTypeCode) {
        this.ifTypeCode = ifTypeCode;
    }

    public String getIfTypeName() {
        return ifTypeName;
    }

    public void setIfTypeName(String ifTypeName) {
        this.ifTypeName = ifTypeName;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getMustFromTemplate() {
        return mustFromTemplate;
    }

    public void setMustFromTemplate(Byte mustFromTemplate) {
        this.mustFromTemplate = mustFromTemplate;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getWhiteIp() {
        return whiteIp;
    }

    public void setWhiteIp(String whiteIp) {
        this.whiteIp = whiteIp;
    }

    public Integer getOrderExpire() {
        return orderExpire;
    }

    public void setOrderExpire(Integer orderExpire) {
        this.orderExpire = orderExpire;
    }

    public Long getPayConfirmAmount() {
        return payConfirmAmount;
    }

    public void setPayConfirmAmount(Long payConfirmAmount) {
        this.payConfirmAmount = payConfirmAmount;
    }

    public Byte getEnableNotify() {
        return enableNotify;
    }

    public void setEnableNotify(Byte enableNotify) {
        this.enableNotify = enableNotify;
    }

    public Byte getIfSourceType() {
        return ifSourceType;
    }

    public void setIfSourceType(Byte ifSourceType) {
        this.ifSourceType = ifSourceType;
    }

    public String getIfVersion() {
        return ifVersion;
    }

    public void setIfVersion(String ifVersion) {
        this.ifVersion = ifVersion;
    }

    public String getSupportConfigType() {
        return supportConfigType;
    }

    public void setSupportConfigType(String supportConfigType) {
        this.supportConfigType = supportConfigType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ifTypeCode=").append(ifTypeCode);
        sb.append(", ifTypeName=").append(ifTypeName);
        sb.append(", status=").append(status);
        sb.append(", mustFromTemplate=").append(mustFromTemplate);
        sb.append(", param=").append(param);
        sb.append(", whiteIp=").append(whiteIp);
        sb.append(", orderExpire=").append(orderExpire);
        sb.append(", payConfirmAmount=").append(payConfirmAmount);
        sb.append(", enableNotify=").append(enableNotify);
        sb.append(", ifSourceType=").append(ifSourceType);
        sb.append(", ifVersion=").append(ifVersion);
        sb.append(", supportConfigType=").append(supportConfigType);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PayInterfaceType other = (PayInterfaceType) that;
        return (this.getIfTypeCode() == null ? other.getIfTypeCode() == null : this.getIfTypeCode().equals(other.getIfTypeCode()))
            && (this.getIfTypeName() == null ? other.getIfTypeName() == null : this.getIfTypeName().equals(other.getIfTypeName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getMustFromTemplate() == null ? other.getMustFromTemplate() == null : this.getMustFromTemplate().equals(other.getMustFromTemplate()))
            && (this.getParam() == null ? other.getParam() == null : this.getParam().equals(other.getParam()))
            && (this.getWhiteIp() == null ? other.getWhiteIp() == null : this.getWhiteIp().equals(other.getWhiteIp()))
            && (this.getOrderExpire() == null ? other.getOrderExpire() == null : this.getOrderExpire().equals(other.getOrderExpire()))
            && (this.getPayConfirmAmount() == null ? other.getPayConfirmAmount() == null : this.getPayConfirmAmount().equals(other.getPayConfirmAmount()))
            && (this.getEnableNotify() == null ? other.getEnableNotify() == null : this.getEnableNotify().equals(other.getEnableNotify()))
            && (this.getIfSourceType() == null ? other.getIfSourceType() == null : this.getIfSourceType().equals(other.getIfSourceType()))
            && (this.getIfVersion() == null ? other.getIfVersion() == null : this.getIfVersion().equals(other.getIfVersion()))
            && (this.getSupportConfigType() == null ? other.getSupportConfigType() == null : this.getSupportConfigType().equals(other.getSupportConfigType()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIfTypeCode() == null) ? 0 : getIfTypeCode().hashCode());
        result = prime * result + ((getIfTypeName() == null) ? 0 : getIfTypeName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getMustFromTemplate() == null) ? 0 : getMustFromTemplate().hashCode());
        result = prime * result + ((getParam() == null) ? 0 : getParam().hashCode());
        result = prime * result + ((getWhiteIp() == null) ? 0 : getWhiteIp().hashCode());
        result = prime * result + ((getOrderExpire() == null) ? 0 : getOrderExpire().hashCode());
        result = prime * result + ((getPayConfirmAmount() == null) ? 0 : getPayConfirmAmount().hashCode());
        result = prime * result + ((getEnableNotify() == null) ? 0 : getEnableNotify().hashCode());
        result = prime * result + ((getIfSourceType() == null) ? 0 : getIfSourceType().hashCode());
        result = prime * result + ((getIfVersion() == null) ? 0 : getIfVersion().hashCode());
        result = prime * result + ((getSupportConfigType() == null) ? 0 : getSupportConfigType().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}